import request from '@/utils/request'

// 获取所有地区维护信息列表
export const getReginList = () => {
  return request({
    url: '/base/manage/area/getAreaTree',
    method: 'get'
  })
}

// 删除单个地区信息
export const deleteRegin = (ids) => {
  return request({
    url: `/base/manage/area/del/${ids}`,
    method: 'delete'
  })
}

// 新增单个地区信息
export const addRegin = (data) => {
  return request({
    url: `/base/manage/area/add`,
    method: 'post',
    data: data
  })
}

// 删除单个地区信息
export const editRegin = (data) => {
  return request({
    url: `/base/manage/area/edit`,
    method: 'put',
    data
  })
}
